package com.productssite.model;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * Refattribute entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "refattribute", catalog = "productssalessite")
public class RefAttribute implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer idRef;
	private String refDisplay;
	private String refType;

	// Constructors

	/** default constructor */
	public RefAttribute() {
	}

	/** minimal constructor */
	public RefAttribute(Integer idRef) {
		this.idRef = idRef;
	}

	/** full constructor */
	public RefAttribute(Integer idRef, String refDisplay, String refType) {
		this.idRef = idRef;
		this.refDisplay = refDisplay;
		this.refType = refType;
	}

	// Property accessors
	@Id
	@Column(name = "idRef", unique = true, nullable = false)
	public Integer getIdRef() {
		return this.idRef;
	}

	public void setIdRef(Integer idRef) {
		this.idRef = idRef;
	}

	@Column(name = "refDisplay", length = 254)
	public String getRefDisplay() {
		return this.refDisplay;
	}

	public void setRefDisplay(String refDisplay) {
		this.refDisplay = refDisplay;
	}

	@Column(name = "refType", length = 254)
	public String getRefType() {
		return this.refType;
	}

	public void setRefType(String refType) {
		this.refType = refType;
	}


}